import request from '@/utils/request'


export function getEstablishment(params) {
  return request({
    url: `/common/getOrgInfo`,
    method: 'get',
    params
  })
}
// 文件下载
export function getDownLoad(params) {
  return request({
    url: `/common/downLoad`,
    method: 'get',
    params
  })
}
// 商品盘存
export function getGoodsStore(params) {
  return request({
    url: `/goods/goodsStore`,
    method: 'POST',
    params
  })
}
// 商品采购
export function getGoodsBuy(params) {
  return request({
    url: `/goods/goodsBuy`,
    method: 'POST',
    params
  })
}
// 商品采购退货
export function getGoodsBuyBack(params) {
  return request({
    url: `/goods/goodsBuyBack`,
    method: 'POST',
    params
  })
}
// 商品销售
export function getGoodsSale(params) {
  return request({
    url: `/goods/goodsSale`,
    method: 'POST',
    params
  })
}

// 商品销售退货
export function getGoodsSaleBack(params) {
  return request({
    url: `/goods/goodsSaleBack`,
    method: 'POST',
    params
  })
}
// 商品删除
export function getGoodsDel(params) {
  return request({
    url: `/goods/goodsDel`,
    method: 'POST',
    params
  })
}

// 获取药品字典
export function getDrugDictIndex(params) {
  return request({
    url: `/drug/drugIndex`,
    method: 'GET',
    params
  })
}

// 目录对照上传
export function handleUpCateLog(params) {
  return request({
    url: `/drug/upCateLog`,
    method: 'POST',
    params
  })
}

// 目录对照上传撤销
export function handleBackCateLog(params) {
  return request({
    url: `/drug/backCateLog`,
    method: 'POST',
    params
  })
}


// 目录对照上传撤销
export function handleGoodsNumUpdate(params) {
  return request({
    url: `/goods/goodsNumUpdate`,
    method: 'POST',
    params
  })
}



